package com.it.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class OrderPayStatusListener {

    @RabbitListener(queues = "myPayQueuey")
    public  void revicePayStatus(String orderId){
        System.out.println("获取监听的订单编号："+orderId);

        //根据编号查询数据库

        //执行数据库的数据更新

    }
}
